from django.conf.urls.defaults import *
import os

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

site_media = os.path.join(os.path.dirname(__file__), 'site_media')

urlpatterns = patterns('',
    # Example:
    # (r'^kokoomi/', include('kokoomi.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    (r'^', include('reviews.urls')),
	(r'^', include('profile.urls')),
	(r'^', include('accounts.urls')),
	(r'^', include('misc.urls')),
    (r'^admin/', include(admin.site.urls)),
	(r'^login/$', 'django.contrib.auth.views.login'),
    (r'^register/$', 'reviews.views.register_page'), # consider moving this out    
    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': site_media}),
)